/*
 * $Id: Udp6Address.cc,v 1.5 2006-01-30 17:38:27 bacon Exp $
 */

#include <xpp/net/Udp6Address.h>
#include <xpp/net/Socket.h>
#include <xp/bas/assert.h>

namespace xpp
{
	namespace net
	{

		Udp6Address::Udp6Address (): UdpAddress (V6)
		{
		}

		Udp6Address::Udp6Address (const InetAddress& adr): UdpAddress (adr)
		{
			xp_assert (this->family() == adr.family());
		}

		Udp6Address::Udp6Address (
			const struct sockaddr_in6& adr): UdpAddress (adr)
		{
		}

		Udp6Address& Udp6Address::operator= (const Udp6Address& adr) 
		{
			UdpAddress::operator= (adr);
			return *this;
		}

		Udp6Address& Udp6Address::operator= (const InetAddress& adr) 
		{
			xp_assert (this->family() == adr.family());
			UdpAddress::operator= (adr);
			return *this;
		}

	}
}
